package p270jp.pxv.android.viewholder;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.Objects;
import p156ff.ParentComment;
import p270jp.pxv.android.R;
import p270jp.pxv.android.legacy.model.PixivWork;
import p270jp.pxv.android.view.CommentItemView;
import p307l9.EdgeTreatment;
import p314lg.ViewHolderNestedCommentParentBinding;

/* renamed from: jp.pxv.android.viewholder.ParentCommentViewHolder */
/* loaded from: classes2.dex */
public class ParentCommentViewHolder extends NestedCommentViewHolder {
    private final ViewHolderNestedCommentParentBinding binding;

    private ParentCommentViewHolder(ViewHolderNestedCommentParentBinding n7Var) {
        super(n7Var.f22006a);
        this.binding = n7Var;
    }

    public static ParentCommentViewHolder createViewHolder(ViewGroup viewGroup) {
        View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.view_holder_nested_comment_parent, viewGroup, false);
        Objects.requireNonNull(inflate, "rootView");
        CommentItemView commentItemView = (CommentItemView) inflate;
        return new ParentCommentViewHolder(new ViewHolderNestedCommentParentBinding(commentItemView, commentItemView));
    }

    public void onBind(ParentComment dVar, PixivWork pixivWork, boolean z) {
        EdgeTreatment.m3909i(dVar);
        EdgeTreatment.m3909i(pixivWork);
        this.binding.f22007b.m4512b(dVar.f14534a, pixivWork, z);
    }
}
